<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Home Page</title>
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css" />
    <style type="text/css" >
        .error { color: red; }
                input.error { border-color: red; }
    </style>
</head>

<body>
                      <script id="entry-template" type="text/x-handlebars-template">
          {{#each aaData}}
                  <div class="item">
                                {{Name}}
                  </div>
                  {{/each}}
        </script>
       <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.rc.1/handlebars.min.js "></script>
        <script type="text/javascript">
                        $(function(){
                                var source   = $("#entry-template").html();
                                var template = Handlebars.compile(source);
                                $.get('../Api/Products.php',function(data){
                                         $("#contents").html(template(data));
                                       
                                }, 'json');
                        });
                </script>
</body>
</html>
